# ################# clean Jenkins
docker stop    jeecg-jenkins

# rm -rf /var/jenkins_home

rm -rf /var/jenkins_home/workspace/
rm -rf /var/jenkins_home/war
rm -rf /var/jenkins_home/.cache
rm -rf /var/jenkins_home/.java
rm -rf /var/jenkins_home/copy_reference_file.log
rm -rf /var/jenkins_home/logs
rm -rf /var/jenkins_home/queue.xml.bak

rm -rf /var/jenkins_home/jobs/backend/builds
rm -rf /var/jenkins_home/jobs/backend/nextBuildNumber

rm -rf /var/jenkins_home/jobs/frontend/builds
rm -rf /var/jenkins_home/jobs/frontend/nextBuildNumber

rm -r  /jeecg/jenkins_home.tar.gz

# tar jenkins_home
cd /var/jenkins_home
tar -czvf /jeecg/jenkins_home.tar.gz .
cd /jeecg/

docker start jeecg-jenkins

# #################  restore jenkins_home
mkdirs /var/jenkins_home
tar -zxvf jenkins_home.tar.gz -C /var/jenkins_home
cd /var/jenkins_home
